package br.com.jmmarca.model;

import org.droidpersistence.annotation.Column;
import org.droidpersistence.annotation.PrimaryKey;
import org.droidpersistence.annotation.Table;

import br.com.jmmarca.dao.generic.AbstractEntity;

/**
 *
 * @author MICHEL
 */
@Table(name = "cor")
public class Cor extends AbstractEntity {
	@PrimaryKey(autoIncrement = true)
    @Column(name = "id")
    private Integer id;
    @Column(name = "nome")
    private String nome;
    @Column(name = "codigo")
    private String codigo;  
   
    public Cor() {
    }

    public Cor(Integer id) {
        this.id = id;
    }

    @Override
	public Integer getId() {
        return id;
    }

    @Override
	public void setId(Integer id) {
        this.id = id;
    }

    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

  

    @Override
    public String toString() {
        return id+" - "+nome;
    }

	public String getCodigo() {
		return codigo;
	}

	public void setCodigo(String codigo) {
		this.codigo = codigo;
	}

	
    
    
}
